import request from './request.js'

const chat = {
  //获取tim用户信息
  getTimInfo(data) {
    console.log(data)
	  return request.post('/bussiness/BusInstantMessaging/BusInstantMessaging', data)
  },
  // 获取服务商群
  GetServiceProvidersIMGroup(data) {
    return request.post('/api/common/core/Chat/GetServiceProvidersIMGroup', data)
  },
  // 获取我的好友
  GetMyGoodFriendList(data) {
    return request.post('/api/common/core/Chat/GetMyGoodFriendList', data)
  },
  // 获取服务商成员群
  GetServiceProvidersMemberGroupList(data) {
    return request.post('/api/common/core/Chat/GetServiceProvidersMemberGroupList', data)
  },
  // 编辑群名称
  EditGroupName(data) {
    return request.post('/api/common/core/Chat/EditGroupName', data)
  },
  // 获取服务商及上级信息
  GetUserServiceProvider() {
    return request.get('/api/common/core/Chat/GetUserServiceProvider')
  },
  // 群发好友列表
  GetMyPartnerList(data) {
    return request.post('/api/common/core/Chat/GetMyPartnerList', data)
  },
  // 新增群发记录
  AddGroupSendMessage(data) {
    return request.post('/api/common/core/Chat/AddGroupSendMessage', data)
  },
  // 根据id,获取群发记录
  GetGroupSendMessage(data) {
    return request.post('/api/common/core/Chat/GetGroupSendMessage', data)
  },
  // 获取群发记录分页列表
  GetGroupSendMessageListPage(data) {
    return request.post('/api/common/core/Chat/GetGroupSendMessageListPage', data)
  },
  // 获取我的群信息
  GetMyIMGroup(data) {
    return request.post('/api/common/core/Chat/GetMyIMGroup', data)
  }
}

export default chat
